<template>
  <div class="baseData-container">
    <div class="businessValue_container">
      <div class="businessNumber">77.4%</div>
      <div class="businessName">13月继续率-保定</div>
    </div>

    <div class="businessInfo_container">
      <div class="businessInfoItem">
        <div class="businessInfoItem_Number">-3.2pt</div>
        <div class="businessInfoItem_Name">同比</div>
      </div>
    </div>

    <div class="organTag_container">
      <div class="organTagGroup">
        <div class="organTag">
          <div class="boxLeftDiv"></div>
          <div class="organTagText">分公司</div>
        </div>
        <div class="organTag">
          <div class="boxLeftDiv"></div>
          <div class="organTagText">全部渠道</div>
        </div>
      </div>
      <div class="editButton" @click="handleModifyPopup">
        <div class="editText">修改</div>
      </div>
    </div>
    <div class="baseDataline"></div>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  mounted() {},
  methods: {
    handleModifyPopup() {
      this.$emit('modifyPopup', true)
    }
  }
}
</script>

<style lang="scss" scoped>
.baseData-container {
  .businessValue_container {
    .businessNumber {
      padding-top: 16px;
      font-size: 34px;
      font-weight: 600;
      line-height: 48px;
      color: #ffb440;
      font-family: PingFangSC-Semibold, PingFang SC;
    }
    .businessName {
      font-size: 18px;
      line-height: 25px;
      font-weight: 600;
      font-family: PingFangSC-Semibold, PingFang SC;
    }
  }

  .businessInfo_container {
    display: flex;
    flex-wrap: wrap;
    .businessInfoItem {
      .businessInfoItem_Number {
        margin-top: 8px;
        font-size: 18px;
        color: #ffb440;
        line-height: 25px;
      }
      .businessInfoItem_Name {
        font-size: 14px;
        display: block;
        line-height: 20px;
        margin-top: 2px;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.48);
      }
    }
  }

  .organTag_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    .organTagGroup {
      display: flex;
      flex-wrap: wrap;
      width: 240px;
      .organTag {
        background: #273282;
        border-radius: 2px;
        display: flex;
        margin-right: 12px;
        .organTagText {
          line-height: 18px;
          font-size: 13px;
          color: #fff;
          margin: 7px 8px 7px 0px;
        }
        .boxLeftDiv {
          width: 3px;
          height: 12px;
          margin: auto;
          margin-right: 5px;
          background: #ffffff;
          border-radius: 0px 2px 2px 0px;
          opacity: 0.24;
        }
      }
    }
    .editButton {
      background: #025cea;
      border-radius: 2px;
      .editText {
        line-height: 18px;
        font-size: 13px;
        margin: 7px 14px;
      }
    }
  }

  .baseDataline {
    height: 1px;
    width: 100vh;
    margin: 20px -20px;
    background-color: #0c144b;
  }
}
</style>
